CREATE TABLE [dbo].[X78CPCOA]
(
[X78NROREG] [dbo].[TD_IN_001] NULL,
[X78PERIODO] [dbo].[TD_VC_008] NULL,
[X78F_PAGO] [dbo].[TD_VC_008] NULL,
[X78TIPO] [dbo].[TD_VC_002] NULL,
[X78NUMPOL] [dbo].[TD_VC_020] NULL,
[X78NUMFRAC] [dbo].[TD_VC_008] NULL,
[X78NUMCUO] [dbo].[TD_IN_001] NULL,
[X78M_IMPOR] [dbo].[TD_NU_016_004] NOT NULL CONSTRAINT [DF__X78CPCOA__X78M_I__74994623] DEFAULT ((0)),
[X78ADVALOR] [dbo].[TD_NU_016_004] NOT NULL CONSTRAINT [DF__X78CPCOA__X78ADV__76818E95] DEFAULT ((0)),
[X78ISC] [dbo].[TD_NU_016_004] NOT NULL CONSTRAINT [DF__X78CPCOA__X78ISC__7869D707] DEFAULT ((0)),
[X78IGV] [dbo].[TD_NU_016_004] NOT NULL CONSTRAINT [DF__X78CPCOA__X78IGV__7A521F79] DEFAULT ((0)),
[X78CODIGO] [dbo].[TD_VC_003] NOT NULL,
[X78NORDEN] [dbo].[TD_VC_008] NULL,
[X78ESTADO] [dbo].[TD_VC_001] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[X78CPCOA] ADD CONSTRAINT [CK__X78CPCOA__X78ADV__7775B2CE] CHECK (([X78ADVALOR]>=(0)))
GO
ALTER TABLE [dbo].[X78CPCOA] ADD CONSTRAINT [CK__X78CPCOA__X78IGV__7B4643B2] CHECK (([X78IGV]>=(0)))
GO
ALTER TABLE [dbo].[X78CPCOA] ADD CONSTRAINT [CK__X78CPCOA__X78ISC__795DFB40] CHECK (([X78ISC]>=(0)))
GO
ALTER TABLE [dbo].[X78CPCOA] ADD CONSTRAINT [CK__X78CPCOA__X78M_I__758D6A5C] CHECK (([X78M_IMPOR]>=(0)))
GO
